<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hi</title>
</head>
<body>
    <#assign var="hello springboot"/>
    <div>${var}</div>
    <#list userList as item>
        <li>${item.name}, 的生日是：${item.birthday?string('yyyy-MM-dd')}</li>
    </#list>
    <#assign a = 'hello'/>
    <#assign b = ' world'/>
    <div> ${a + b}</div>
    <div> ${(a + b)?substring(5, 8)}</div>
    <div> ${(a + b)?length}</div>
    <div> ${(a + b)?upper_case}</div>
    <div> ${(a + b)?lower_case}</div>
    <div> ${(a + b)?index_of('e')}</div>
    <div> ${(a + b)?replace('o', 'xx')}</div>
    <div> ${(a + b)?last_index_of('o')}</div>
    <div>自定义函数</div>
    <div>未排序：<#assign myList = [2,3,4,5,1]/>
        <#list myList as item>
            ${item}
        </#list>
    </div>
    <div>已排序:
        <#list sort_int(myList) as item>
            ${item}
        </#list>
    </div>
    <div>已排序:
        <#list myList?sort?reverse as item>
            ${item_index}: ${item}
        </#list>
        <div></div>
        ${myList[3]}
    </div>
    <script>
        debugger
        console.log("${a+b}")
    </script>
</body>
</html>